<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<title>Utama</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="js/jquery-latest.js"></script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
	<div class="navbar-inner">
	<ul class="nav nav-pills">
    <li class="active"><a href="#"><i class="icon-home icon-white"></i> Home</a></li>
    <li><a href="index.php"><i class="icon-book"></i> Catalogue</a></li>
	<li><a href="add.php"><i class="icon-pencil"></i> Tracking</a></li>
	<li><a href="logout.php"><i class="icon-user"></i> About Us</a></li>

    </ul>
	</div>
	</div>

<html>
<head>
<title>Utama</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="js/jquery-latest.js"></script>
</head>
<body>
</body>
</html>

<?php

include ('koneksi.php');
include ('auth.php');

 
if (isset($_POST['submit1'])){
	$auth=new Auth();
	$is_login=$auth->login($_POST['email'],$_POST['password']);
	if ($is_login){
		header('location:home.php');
		exit();
	} else{
	header('location:gagal.php');
	exit();
	}
}
?>

<html>
<div class="hero-unit">
<h3>Login</h3>
<form class="well span3" name="input_form" action="" method="post" enctype="multipart/form-data">
  <table>
    <tr> 
      <td>Email</td>
      <td><input type="text" name="email"></td>
    </tr>
    <tr> 
      <td>Password</td>
      <td><input type="text" name="password"></td>
    </tr>
	<tr> 
      <td></td>
      <td><input type="submit" name="submit1" value="submit"></td>
    </tr>
  </table>
</form>
</body>
</html> 

<html>
<div class="hero-unit">
<p1>Anda Belum terdaftar sebagai member? Silakan </h3>
<a href="sign_up.php"> <td><input type="submit" name="Back" value="Sign Up"></td></a>

